package com.pda.common.database;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Index;

@Entity(
        indexes = {
                @Index(value = "code,type", unique = true)
        }
)
//条码存储
public class CodeInfo {
    @Id(autoincrement = true)
    private Long id;
    private String bill;
    private String code;
    private int type;
@Generated(hash = 939729284)
public CodeInfo(Long id, String bill, String code, int type) {
    this.id = id;
    this.bill = bill;
    this.code = code;
    this.type = type;
}
@Generated(hash = 1924183095)
public CodeInfo() {
}
public Long getId() {
    return this.id;
}
public void setId(Long id) {
    this.id = id;
}
public String getBill() {
    return this.bill;
}
public void setBill(String bill) {
    this.bill = bill;
}
public String getCode() {
    return this.code;
}
public void setCode(String code) {
    this.code = code;
}
public int getType() {
    return this.type;
}
public void setType(int type) {
    this.type = type;
}



}


